#ifndef __USART1_H__
#define __USART1_H__

#include "stm32f4xx.h" 
#include "stdio.h"

#define RINGBUFF_LEN 256
#define FLASE 1
#define TRUE 0
typedef struct
{
	u16 head;
	u16 tail;
	u16 Lenght;
	u8  Buff[RINGBUFF_LEN];
}RingBuff_t;

typedef unsigned int uint32_t;

void USART1_Init(u32 baud);
void RingBuff_Init(void);
u8 Write_RingBuff(u8 data);
u8 Read_RingBuff(u8 *rData);
#endif
